package com.trade.module.daq.entity;

import com.trade.module.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Class Description: 字段信息实体类
 *
 * @Version v1.0 2017/6/17 12:12
 * @JDK version 1.8.0_51
 * @Author zfb
 */
@Entity
@Table(name = "daq_field_info")
public class FieldInfo extends BaseEntity implements Serializable{
    private static final long serialVersionUID = -7386380842983682502L;

    @Column(
            name = "type",
            length = 20
    )
    private String type;//	字段类型
    @Column(
            name = "length",
            length =    20
    )
    private String length;//	字段长度
    @Column(
            name = "ename",
            length =32
    )
    private String ename;//	字段英文名称

    @Column(
            name = "cname",
            length = 50
    )
    private String cname;//	字段中文名称

    @Column(
            name = "is_key",
            length = 2
    )
    private String isKey;//	主键名称

    @Column(
            name = "remark",
            length = 120
    )
    private String remark;//	备注
    @Column(
            name = "if_use",
            length = 20)
    private String ifUse;//	使用状态（y  n)
    @Column(
            name = "table_info_id",
            length = 80
    )
    private String tableInfoId;//	关联表ID
    @Column(
            name = "origin_name",
            length = 32
    )
    private String originName;//	元数据名称
    @Column(
            name = "reserve",
            length = 32
    )
    private String reserve;//	预留字段(字段摘要)
    @Column(
            name = "sort",
            length = 32
    )
    private Integer sort;//	排序字段
    @Column(
            name = "surperiod",
            length = 32
    )
    private String surperiod;//	生存周期
    @Column(
            name = "is_rel_source",
            length = 2
    )
    private String isRelSource;//	是否关联数据源(Y,N)
    @Column(
            name = "source_cname",
            length = 50
    )
    private String sourceCname;//	数据源管理中文名
    @Column(
            name = "source_ename",
            length = 32
    )
    private String sourceEname;//	数据源管理区英文名

    @Column(
            name = "is_create_time", //(y 是 n 否）
            length = 32
    )
    private String isCreateTime;//是否创建时间
    @Column(
            name = "is_modify_time",//(y 是 n 否）
            length = 32
    )
    private String isModifyTime;//是否更新时间
    @Column(
            name = "filed_type",
            length = 10
    )
    private String fieldType;//字段类别

    @Column(
            name = "source_length",
            length =    20
    )
    private String sourceLength;//	源表字段长度

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLength() {
        return length;
    }

    public void setLength(String length) {
        this.length = length;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getIsKey() {
        return isKey;
    }

    public void setIsKey(String isKey) {
        this.isKey = isKey;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getIfUse() {
        return ifUse;
    }

    public void setIfUse(String ifUse) {
        this.ifUse = ifUse;
    }

    public String getTableInfoId() {
        return tableInfoId;
    }

    public void setTableInfoId(String tableInfoId) {
        this.tableInfoId = tableInfoId;
    }

    public String getOriginName() {
        return originName;
    }

    public void setOriginName(String originName) {
        this.originName = originName;
    }

    public String getReserve() {
        return reserve;
    }

    public void setReserve(String reserve) {
        this.reserve = reserve;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getSurperiod() {
        return surperiod;
    }

    public void setSurperiod(String surperiod) {
        this.surperiod = surperiod;
    }

    public String getIsRelSource() {
        return isRelSource;
    }

    public void setIsRelSource(String isRelSource) {
        this.isRelSource = isRelSource;
    }

    public String getSourceCname() {
        return sourceCname;
    }

    public void setSourceCname(String sourceCname) {
        this.sourceCname = sourceCname;
    }

    public String getSourceEname() {
        return sourceEname;
    }

    public void setSourceEname(String sourceEname) {
        this.sourceEname = sourceEname;
    }

    public String getIsCreateTime() {
        return isCreateTime;
    }

    public void setIsCreateTime(String isCreateTime) {
        this.isCreateTime = isCreateTime;
    }

    public String getIsModifyTime() {
        return isModifyTime;
    }

    public void setIsModifyTime(String isModifyTime) {
        this.isModifyTime = isModifyTime;
    }

    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public String getSourceLength() {
        return sourceLength;
    }

    public void setSourceLength(String sourceLength) {
        this.sourceLength = sourceLength;
    }
}
